package com.asiainfo.cms.portal.service.impl;

import com.asiainfo.cms.portal.entity.Banner;
import com.asiainfo.cms.portal.mapper.BannerMapper;
import com.asiainfo.cms.portal.service.BannerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 文章 服务实现类
 * </p>
 *
 * @author author
 * @since 2021-04-12
 */
@Service
public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> implements BannerService {

    @Autowired
    private BannerMapper bannerMapper;
    @Override
    public List<Banner> getBannerByModule(String module) {

        return bannerMapper.selectBannerByModule(module);
    }
}
